package com.baidu.push.example;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;

import com.chinatelecom.epush.R;
import com.chinatelecom.epush.im.AppStart;

public class ContactsFragment extends Fragment {
	
	private Button testbutton;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View contactsLayout = inflater.inflate(R.layout.contacts_layout,
				container, false);
		testbutton = (Button) contactsLayout.findViewById(R.id.testButton);
		
		testbutton.setOnClickListener(new ButtonClick());
		return contactsLayout;
		
	}
	
	class ButtonClick implements OnClickListener{

		@Override
		public void onClick(View v) {
			Intent intent = new Intent();
			intent.setClass(getActivity(), AppStart.class);
			startActivity(intent);
		}
		
	}

}
